.class public Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;
.super Lcom/burstly/jackson/map/jsontype/impl/StdTypeResolverBuilder;
.source "ObjectMapper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/jackson/map/ObjectMapper;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "DefaultTypeResolverBuilder"
.end annotation


# static fields
.field private static synthetic $SWITCH_TABLE$com$burstly$jackson$map$ObjectMapper$DefaultTyping:[I


# instance fields
.field protected final _appliesFor:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;


# direct methods
.method static synthetic $SWITCH_TABLE$com$burstly$jackson$map$ObjectMapper$DefaultTyping()[I
    .locals 3

    .prologue
    .line 120
    sget-object v0, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->$SWITCH_TABLE$com$burstly$jackson$map$ObjectMapper$DefaultTyping:[I

    if-eqz v0, :cond_0

    :goto_0
    return-object v0

    :cond_0
    invoke-static {}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->values()[Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    move-result-object v0

    array-length v0, v0

    new-array v0, v0, [I

    :try_start_0
    sget-object v1, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->JAVA_LANG_OBJECT:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    invoke-virtual {v1}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->ordinal()I

    move-result v1

    const/4 v2, 0x1

    aput v2, v0, v1
    :try_end_0
    .catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_3

    :goto_1
    :try_start_1
    sget-object v1, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->NON_CONCRETE_AND_ARRAYS:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    invoke-virtual {v1}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->ordinal()I

    move-result v1

    const/4 v2, 0x3

    aput v2, v0, v1
    :try_end_1
    .catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_2

    :goto_2
    :try_start_2
    sget-object v1, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->NON_FINAL:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    invoke-virtual {v1}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->ordinal()I

    move-result v1

    const/4 v2, 0x4

    aput v2, v0, v1
    :try_end_2
    .catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_1

    :goto_3
    :try_start_3
    sget-object v1, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->OBJECT_AND_NON_CONCRETE:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    invoke-virtual {v1}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->ordinal()I

    move-result v1

    const/4 v2, 0x2

    aput v2, v0, v1
    :try_end_3
    .catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_0

    :goto_4
    sput-object v0, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->$SWITCH_TABLE$com$burstly$jackson$map$ObjectMapper$DefaultTyping:[I

    goto :goto_0

    :catch_0
    move-exception v1

    goto :goto_4

    :catch_1
    move-exception v1

    goto :goto_3

    :catch_2
    move-exception v1

    goto :goto_2

    :catch_3
    move-exception v1

    goto :goto_1
.end method

.method public constructor <init>(Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;)V
    .locals 0
    .parameter "t"

    .prologue
    .line 128
    invoke-direct {p0}, Lcom/burstly/jackson/map/jsontype/impl/StdTypeResolverBuilder;-><init>()V

    .line 129
    iput-object p1, p0, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->_appliesFor:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    .line 130
    return-void
.end method


# virtual methods
.method public buildTypeDeserializer(Lcom/burstly/jackson/map/DeserializationConfig;Lcom/burstly/jackson/type/JavaType;Ljava/util/Collection;Lcom/burstly/jackson/map/BeanProperty;)Lcom/burstly/jackson/map/TypeDeserializer;
    .locals 1
    .parameter "config"
    .parameter "baseType"
    .parameter
    .parameter "property"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/burstly/jackson/map/DeserializationConfig;",
            "Lcom/burstly/jackson/type/JavaType;",
            "Ljava/util/Collection",
            "<",
            "Lcom/burstly/jackson/map/jsontype/NamedType;",
            ">;",
            "Lcom/burstly/jackson/map/BeanProperty;",
            ")",
            "Lcom/burstly/jackson/map/TypeDeserializer;"
        }
    .end annotation

    .prologue
    .line 136
    .local p3, subtypes:Ljava/util/Collection;,"Ljava/util/Collection<Lcom/burstly/jackson/map/jsontype/NamedType;>;"
    invoke-virtual {p0, p2}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->useForType(Lcom/burstly/jackson/type/JavaType;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-super {p0, p1, p2, p3, p4}, Lcom/burstly/jackson/map/jsontype/impl/StdTypeResolverBuilder;->buildTypeDeserializer(Lcom/burstly/jackson/map/DeserializationConfig;Lcom/burstly/jackson/type/JavaType;Ljava/util/Collection;Lcom/burstly/jackson/map/BeanProperty;)Lcom/burstly/jackson/map/TypeDeserializer;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public buildTypeSerializer(Lcom/burstly/jackson/map/SerializationConfig;Lcom/burstly/jackson/type/JavaType;Ljava/util/Collection;Lcom/burstly/jackson/map/BeanProperty;)Lcom/burstly/jackson/map/TypeSerializer;
    .locals 1
    .parameter "config"
    .parameter "baseType"
    .parameter
    .parameter "property"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/burstly/jackson/map/SerializationConfig;",
            "Lcom/burstly/jackson/type/JavaType;",
            "Ljava/util/Collection",
            "<",
            "Lcom/burstly/jackson/map/jsontype/NamedType;",
            ">;",
            "Lcom/burstly/jackson/map/BeanProperty;",
            ")",
            "Lcom/burstly/jackson/map/TypeSerializer;"
        }
    .end annotation

    .prologue
    .line 143
    .local p3, subtypes:Ljava/util/Collection;,"Ljava/util/Collection<Lcom/burstly/jackson/map/jsontype/NamedType;>;"
    invoke-virtual {p0, p2}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->useForType(Lcom/burstly/jackson/type/JavaType;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-super {p0, p1, p2, p3, p4}, Lcom/burstly/jackson/map/jsontype/impl/StdTypeResolverBuilder;->buildTypeSerializer(Lcom/burstly/jackson/map/SerializationConfig;Lcom/burstly/jackson/type/JavaType;Ljava/util/Collection;Lcom/burstly/jackson/map/BeanProperty;)Lcom/burstly/jackson/map/TypeSerializer;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public useForType(Lcom/burstly/jackson/type/JavaType;)Z
    .locals 4
    .parameter "t"

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 156
    invoke-static {}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->$SWITCH_TABLE$com$burstly$jackson$map$ObjectMapper$DefaultTyping()[I

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/jackson/map/ObjectMapper$DefaultTypeResolverBuilder;->_appliesFor:Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;

    invoke-virtual {v3}, Lcom/burstly/jackson/map/ObjectMapper$DefaultTyping;->ordinal()I

    move-result v3

    aget v2, v2, v3

    packed-switch v2, :pswitch_data_0

    .line 171
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->getRawClass()Ljava/lang/Class;

    move-result-object v2

    const-class v3, Ljava/lang/Object;

    if-ne v2, v3, :cond_0

    move v0, v1

    :cond_0
    :goto_0
    return v0

    .line 159
    :cond_1
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->getContentType()Lcom/burstly/jackson/type/JavaType;

    move-result-object p1

    .line 158
    :pswitch_0
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->isArrayType()Z

    move-result v2

    if-nez v2, :cond_1

    .line 163
    :pswitch_1
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->getRawClass()Ljava/lang/Class;

    move-result-object v2

    const-class v3, Ljava/lang/Object;

    if-eq v2, v3, :cond_2

    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->isConcrete()Z

    move-result v2

    if-nez v2, :cond_0

    :cond_2
    move v0, v1

    goto :goto_0

    .line 166
    :cond_3
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->getContentType()Lcom/burstly/jackson/type/JavaType;

    move-result-object p1

    .line 165
    :pswitch_2
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->isArrayType()Z

    move-result v2

    if-nez v2, :cond_3

    .line 168
    invoke-virtual {p1}, Lcom/burstly/jackson/type/JavaType;->isFinal()Z

    move-result v2

    if-nez v2, :cond_0

    move v0, v1

    goto :goto_0

    .line 156
    nop

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
